HI! 我是Maple 剛滿20歲沒多久的小朋友 請ㄅ要欺負窩QAQ
下禮拜要開始期中考了好煩RRRR
下禮拜要考期中考了,開始複習~~~~~~~
離散數學
-
Binary Relation on a Set
- Definition: A binary relation R on a set A is a subset of A × A or a relation from A to A
- Ex:A = {1,2,3,4}
- R = {(a,b) | a divides b} are (1,1), (1, 2), (1,3), (1, 4), (2, 2), (2, 4), (3, 3), and(4, 4).
-
Reflexive Relations
- 如果element x ∊A 則(x,x)∊ R
- EX:The following relations on the integers are reflexive:
R1 = {(a,b) | a ≤ b},
R3 = {(a,b) | a = b or a = −b},
R4 = {(a,b) | a = b}.
The following relations are not reflexive:
R2 = {(a,b) | a > b} (note that 3 ≯3),
R5 = {(a,b) | a = b + 1} (note that 3 ≠3 + 1),
R6 = {(a,b) | a + b ≤ 3} (note that 4 + 4 ≰3)
-
Symmetric Relations
- 如果element (x,y)∊A 則 (y,x)∊A
- Ex: The following relations on the integers are symmetric:
R3 = {(a,b) | a = b or a = −b},
R4 = {(a,b) | a = b},
R6 = {(a,b) | a + b ≤ 3}.
The following are not symmetric:
R1 = {(a,b) | a ≤ b} (note that 3 ≤ 4, but 4 ≰ 3),
R2 = {(a,b) | a > b} (note that 4 > 3, but 3 ≯ 4),
R5 = {(a,b) | a = b + 1} (note that 4 = 3 + 1, but 3 ≠4 + 1).